import com.learn.config.VideoConfig;
import com.learn.utils.Mp4ExtractAudioUtils;
import com.learn.utils.TenXunYunUtil;
import com.learn.mapper.VideoChangeMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;


public class test {

    @Autowired
    private VideoChangeMapper videoChangeMapper;

    @Autowired
    private  Mp4ExtractAudioUtils mp4ExtractAudioUtils;

    @Autowired
    private TenXunYunUtil tenXunYunUtil;

    @Autowired
    private  VideoConfig videoConfig;
    @Test
    public void a() throws Exception {
       mp4ExtractAudioUtils.extractAudio(
                "E:\\firstOne\\userServer\\target\\student.mp4",
                "E:\\firstOne\\userServer\\target\\mp");
    }

    @Test
    public void b(){
        Long taskId = tenXunYunUtil.getClient("https://changevideo-1322833033.cos.ap-guangzhou.myqcloud.com/8571358758176077449");
        System.out.println(taskId);
    }

    @Test
    public void c(){
        System.out.println(tenXunYunUtil.getText(8569879025L).getResult());
    }

    @Test
    public void d(){
        System.out.println(videoConfig.getAudioUrl());
        System.out.println(videoConfig.getPcmUrl());
        System.out.println(videoConfig.getSecretId());

    }

}
